from ftllibs.items.itemtools import ItemIconData

class Item_3172():
    def __init__(self):
        self.parent=False
        self.Name="Cloak and Dagger"
        self.IconFileName="3172.png"
        self.ID=3172
        self.Stack=0
        self.MaxStack=0
        self.Built_From=['1018','1042']
        self.Builds_Into=[]
        self.Tags=['critical_strike','attack_speed']
        self.Costs = 200
        self.Total_Costs = 1450
        self.Description="+20% Attack Speed +20% Critical Strike Chance  UNIQUE Passive: +35 Tenacity (Tenacity reduces the duration of stuns, slows, taunts, fears, silences, blinds and immobilizes. Does not stack with other Tenacity items.)"
        self.RichText_Description=""
        self.has_active=False
        self.has_passive=True
        self.IconData=ItemIconData(self.IconFileName)
        self.Availability=["summonersrift"]
        self.Custom()

    def UpdateStats(self):
        self.parent.Attack_Speed_Percentage += 20.0
        # above is %
        self.parent.Critical_Strike_Chance += 20.0
        # above is %
        self.parent.Tenacity=True
        self.UpdateStats_Custom()


    def Custom(self):
        pass

    def UpdateStats_Custom(self):
        pass


